package schema

type SchemaRunJob struct {
	Description 	string 		`json:"description" binding:"required"`
	ServerName 		string 		`json:"server_name" binding:"required"` // 用来往配置中心取配置，服务名要和配置中心相匹配
	Version    		string  	`json:"version" binding:"required"`
	JobModelId 		int 		`json:"job_model_id" `
	JobModelName 	string 		`json:"job_model_name" `
	JobModelContext []string 		`json:"job_model_context" `
	Timeout		int 			`json:"timeout" binding:"required"`
	RpmName			[]string 		`json:"rpm_name" binding:"required"`
	Instances 		[]string    `json:"instances" binding:"required"`
	InstanceType 	string 		`json:"instance_type" `
	User 			string 		`json:"user" binding:"required"`
	JobPolicy		int 		`json:"job_policy"`   // 部署时候的并发数

}

type SchemaRunJobResult struct {
	JobId			int			`json:"job_id"`
	InstanceStatus	string		`json:"instance_status"`
	AbnormalInstanceDetail	[]string	`json:"abnormal_instance_detail"`
}

type SchemaAgentList struct {
	Count int  `json:"count"`
	AgentList []interface{} `json:"agent_list"`
}